/**
 * Author: Dmitry Ustimov
 * Date: 5/14/13
 * Time: 9:26 PM
 */

package com.gmail.dmitryustimov.ms.java7.mediator.classic.example.classic_example1;

public class Demo {

    public static void main(String args[]) {
        Mediator mediator = new Mediator();
        Flight sparrow101 = new Flight(mediator);
        Runway mainRunway = new Runway(mediator);
        mediator.registerFlight(sparrow101);
        mediator.registerRunway(mainRunway);
        sparrow101.getReady();
        mainRunway.noLand();
        sparrow101.land();
        mainRunway.land();
        sparrow101.land();
    }
}
